package com.lc.user.express.httpserver;

import com.lc.user.express.model.BankModel;
import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONArray;
import org.json.JSONObject;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2016/4/25.
 */
@HttpInlet(Net.CESHI)
public class GetCeshi extends ZJDBAsyGet<GetCeshi.Info> {

    public String userid;

    public GetCeshi(String userid, AsyCallBack listener) {
        super(listener);
        this.userid = userid;
    }

    @Override
    protected Info parser(JSONObject object) {
        if (object.optInt("message") == 1) {
            Info info = new Info();

            return info;
        }
        return null;
    }

    @Override
    protected boolean skipSecret(String key) {
        return key.equals("userid");
    }

    public static class Info {
        public List<BankModel> dataList = new ArrayList<>();
    }
}
